class Ability
  include CanCan::Ability
  
  def initialize(user)
    if user.nil?
      can :read, :all
      return
    end
    
    if user.is_admin
      can :access, :all
    else
      
      can :read, :all
    end
  end
end

